#{extends 'magicBox.html' /}

#{set 'title'}Artifacts #{/set}
<div name="@{Sprints.BoardSprints(project.id)}">
Boards
#{list items:project.sprints, as:'sprint'}
	#{if !sprint.ended() && !sprint.ended}
		#{if sprint.project.hasComponents()>1}
			<a href="#" onclick="overlayOpen('@{Boards.loadboard1(sprint.id)}')" title="sprint ${sprint.sprintNumber} board?">
			<img src="@{'public/images/famfam/application_view_tile.png'}"/></a>
		#{/if}
		#{else}
			<a href="#" onclick="overlayOpen('@{Boards.loadboard1(sprint.id,sprint.project.components[0].id)}')" title="sprint ${sprint.sprintNumber} board?">
			<img src="@{'public/images/famfam/application_view_tile.png'}"/></a>
		#{/else}
	#{/if}
#{/list}	
</div>
<div name="@{Sprints.BacklogSprints(project.id)}">
Backlogs
#{list items:project.sprints, as:'sprint'}
	#{if !sprint.ended() && !sprint.ended}
	<a href="#" onclick="overlayOpen('@{SprintBacklog.index(0,sprint.id)}')" title="sprint ${sprint.sprintNumber} backlog?">
	<img src="@{'public/images/famfam/table.png'}" alt="[chart]"/></a>
	#{/if}
#{/list}	
</div>
<div name="@{Sprints.ChartSprints(project.id)}">
Charts
<a href="#" onclick="overlayOpen('@{ProductBacklogs.showGraph(project.id,0)}')" title="View the overall progress of the company?">
<img src="@{'public/images/famfam/chart.png'}" alt="[chart]"/></a>

			
</div>
<div name="@{Games.userGameComponents(project.id)}">Estimation games</div>
